/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dnbW.entityW;

/**
 * Encapsulates an XML condition with path expression, value, operator
 * @author truongbaquan
 */
public class Condition {
    private Path path;

    public Path getPath() {
        return path;
    }

    private Operator operator;

    public Operator getOperator() {
        return operator;
    }

    private String value;

    public String getValue() {
        return value;
    }

    private ConditionGroup group;

    public ConditionGroup getGroup() {
        return group;
    }

    public Condition(Path path) {
        this.path = path;
        this.group = new ConditionGroup();
    }

    public void setValueCondition(Operator operator, String value) {
        this.operator = operator;
        this.value = value;
    }
}
